<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../assets/img/favicon-72.png">
<link rel="apple-touch-icon-precomposed" href="../../assets/img/favicon-32.png">
<link rel="shortcut icon" href="../../assets/img/favicon-32.png">

<link rel="stylesheet" href="../../assets/css/vk.css"/>
<link rel="stylesheet" href="../../assets/css/prism.css"/>


<vk-title>VkGeometryDataNV | NVK</vk-title>

<vk-centered>

  <vk-navigation>
  <vk-search-title>Search</vk-search-title>
  <vk-search>
    <input type="text" id="search" autocomplete="off" />
    <vk-search-results>
      <ol id="search-list">
        <li id="no-search-results">No Results</li>
      </ol>
    </vk-search-results>
  </vk-search>
  <vk-section-title style="margin-top: 1em;">Categories</vk-section-title>
  <vk-categories></vk-categories>
</vk-navigation>


  <vk-struct>

    <vk-name>VkGeometryDataNV</vk-name>

    <vk-description>Structure specifying geometry in a bottom-level acceleration structure</vk-description>

    <vk-section-title>Syntax</vk-section-title>
    <vk-syntax>
      <pre><code class="language-js">geometryDataNV = VkGeometryDataNV();
geometryDataNV = new VkGeometryDataNV();
geometryDataNV = new VkGeometryDataNV(object);</code></pre>
    </vk-syntax>

    <vk-section-title>Stub</vk-section-title>
    
    <vk-property-prototype id="expand-code" class="expand-btn"></vk-property-prototype>

    <vk-stub id="code-no-expand" style="display:none;">
      <pre><code class="language-js">let geometryDataNV = new VkGeometryDataNV();
geometryDataNV.triangles = ;
geometryDataNV.aabbs = ;
</code></pre>
    </vk-stub>

    <vk-stub id="code-expanded" style="display:none;">
      <pre><code class="language-js">let geometryDataNV = new VkGeometryDataNV();
geometryDataNV.triangles.sType = VK_STRUCTURE_TYPE_GEOMETRY_TRIANGLES_NV;
geometryDataNV.triangles.pNext = ;
geometryDataNV.triangles.vertexData = ;
geometryDataNV.triangles.vertexOffset = ;
geometryDataNV.triangles.vertexCount = ;
geometryDataNV.triangles.vertexStride = ;
geometryDataNV.triangles.vertexFormat = ;
geometryDataNV.triangles.indexData = ;
geometryDataNV.triangles.indexOffset = ;
geometryDataNV.triangles.indexCount = ;
geometryDataNV.triangles.indexType = ;
geometryDataNV.triangles.transformData = ;
geometryDataNV.triangles.transformOffset = ;
geometryDataNV.aabbs.sType = VK_STRUCTURE_TYPE_GEOMETRY_AABB_NV;
geometryDataNV.aabbs.pNext = ;
geometryDataNV.aabbs.aabbData = ;
geometryDataNV.aabbs.numAABBs = ;
geometryDataNV.aabbs.stride = ;
geometryDataNV.aabbs.offset = ;
</code></pre>
    </vk-stub><vk-section-title>Parameters</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype class="no-float">object</vk-property-prototype>
        <vk-property-description>When instantiated with an object, members can be filled directly.</vk-property-description>
      </vk-property-entry>
    </vk-properties><vk-section-title>Properties</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.prototype.<vk-prototype-name>triangles</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="object"><a href="../structs/VkGeometryTrianglesNV.html">VkGeometryTrianglesNV</a></vk-property-type>
        <vk-property-description> contains triangle data if <b><a href="../structs/VkGeometryNV.html">VkGeometryNV</a></b>::<b>geometryType</b> is <b>VK_GEOMETRY_TYPE_TRIANGLES_NV</b>.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.prototype.<vk-prototype-name>aabbs</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="object"><a href="../structs/VkGeometryAABBNV.html">VkGeometryAABBNV</a></vk-property-type>
        <vk-property-description> contains axis-aligned bounding box data if <b><a href="../structs/VkGeometryNV.html">VkGeometryNV</a></b>::<b>geometryType</b> is <b>VK_GEOMETRY_TYPE_AABBS_NV</b>.</vk-property-description>
      </vk-property-entry>
      
    </vk-properties>

    <vk-section-title>Default Properties</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.prototype.<vk-prototype-name>memoryBuffer</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="arraybuffer"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer">ArrayBuffer</a></vk-property-type>
        <vk-property-description>Native memory reference of the structure.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.<vk-prototype-name>memoryLayout</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="object">Object</vk-property-type>
        <vk-property-description>Object describing the structure's memory layout.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.<vk-prototype-name>byteLength</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number">Number</vk-property-type>
        <vk-property-description>Total native byte length of the structure.</vk-property-description>
      </vk-property-entry>
    </vk-properties>

    <vk-section-title>Internal Properties</vk-section-title>

    <vk-description>These properties are mainly used by <i>nvk</i> internally.</vk-description>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.<vk-prototype-name>reset</vk-prototype-name></vk-property-prototype>
        <vk-property-description>Resets the native memory of the structure.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.<vk-prototype-name>flush</vk-prototype-name></vk-property-prototype>
        <vk-property-description>Writes the structure's data into the native memory.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkGeometryDataNV.<vk-prototype-name>reflect</vk-prototype-name></vk-property-prototype>
        <vk-property-description>Synchronizes the structure's data with the native memory.</vk-property-description>
      </vk-property-entry>
    </vk-properties>

  </vk-struct>

</vk-centered>

<script>
const IS_ROOT = false;
</script>

<script type="text/javascript" src="../../assets/js/prism.min.js"></script>
<script type="text/javascript" src="../../assets/js/index.js"></script>
